﻿using LJ.EventBus.FastDog.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.EventBus.FastDog.Transport.Abstractions;

/// <summary>
/// 消息发送
/// </summary>
public interface ITransport
{
    /// <summary>
    /// 发送消息,没有异常就是发送成功
    /// </summary>
    /// <param name="message"></param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task SendAsync(TransportMessage message, CancellationToken cancellationToken = default);
}